<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>流程列表</title>
<meta name="decorator" content="default" />
<script type="text/javascript" src="${ctxStatic}/jquery/jquery.form.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/modules/act/processList.js"></script>
</head>
<body>
	
	<table id="grid"></table>
    <div id="toolbar">
	   	<table cellspacing="0" cellpadding="0">
			<tr>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-add" onclick="act.processList.showDeployForm()">添加</a></td>
				<td><div class="datagrid-btn-separator"></div></td>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-remove" onclick="act.processList.remove()">删除</a></td>
			</tr>
		</table>
    </div>
	
	
	<!-- 新增/修改窗口 -->
	<div id="deploydlg" class="easyui-dialog" title="流程信息" modal="true" width="400" height="220" buttons="#dlg-buttons" closed="true">
		<form id="fm" action="${ctxRest}/act/process/deploy" method="post" enctype="multipart/form-data">
			<table style="margin:15px auto;">
				<tr height="30">
					<td width="60" align="right">流程分类</td>
					<td><input class="easyui-combobox" style="width:200px;" id="category" name="category" /></td>
				</tr>
				<tr height="30">
					<td width="60" align="right">流程文件</td>
					<td><input class="easyui-filebox" style="width:200px;" id="file" name="file" buttonText="选择文件" /></td>
				</tr><!--  -->
				<tr height="30">
					<td width="60" align="right">注意：</td>
					<td>支持文件格式：zip、bar、bpmn、bpmn20.xml</td>
				</tr>
			</table>
		</form>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="act.processList.deploy()">确定</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="$('#deploydlg').dialog('close')">取消</a> 
	</div>

</body>
</html>